3.67 \(\int (c i+d i x)^2 (A+B \log (\frac{e (a+b x)}{c+d x}))^2 \, dx\)

Optimal. Leaf size=334 \[ -\frac{2 B^2 i^2 (b c-a d)^3 \text{PolyLog}\left (2,\frac{b (c+d x)}{d (a+b x)}\right )}{3 b^3 d}+\frac{2 B i^2 (b c-a d)^3 \log \left (1-\frac{b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 b^3 d}-\frac{2 B i^2 (a+b x) (b c-a d)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 b^3}-\frac{B i^2 (c+d x)^2 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 b d}+\frac{i^2 (c+d x)^3 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{3 d}+\frac{B^2 i^2 x (b c-a d)^2}{3 b^2}+\frac{B^2 i^2 (b c-a d)^3 \log \left (\frac{a+b x}{c+d x}\right )}{3 b^3 d}+\frac{B^2 i^2 (b c-a d)^3 \log (c+d x)}{b^3 d} \]

[Out]

(B^2*(b*c - a*d)^2*i^2*x)/(3*b^2) + (B^2*(b*c - a*d)^3*i^2*Log[(a + b*x)/(c + d*x)])/(3*b^3*d) - (2*B*(b*c - a
*d)^2*i^2*(a + b*x)*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(3*b^3) - (B*(b*c - a*d)*i^2*(c + d*x)^2*(A + B*Log[
(e*(a + b*x))/(c + d*x)]))/(3*b*d) + (i^2*(c + d*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2)/(3*d) + (B^2*(b*
c - a*d)^3*i^2*Log[c + d*x])/(b^3*d) + (2*B*(b*c - a*d)^3*i^2*(A + B*Log[(e*(a + b*x))/(c + d*x)])*Log[1 - (b*
(c + d*x))/(d*(a + b*x))])/(3*b^3*d) - (2*B^2*(b*c - a*d)^3*i^2*PolyLog[2, (b*(c + d*x))/(d*(a + b*x))])/(3*b^
3*d)

________________________________________________________________________________________

Rubi [A]  time = 0.53155, antiderivative size = 420, normalized size of antiderivative = 1.26, number of steps used = 20, number of rules used = 13, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.406, Rules used = {2525, 12, 2528, 2486, 31, 2524, 2418, 2390, 2301, 2394, 2393, 2391, 43} \[ -\frac{2 B^2 i^2 (b c-a d)^3 \text{PolyLog}\left (2,-\frac{d (a+b x)}{b c-a d}\right )}{3 b^3 d}-\frac{2 B i^2 (b c-a d)^3 \log (a+b x) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 b^3 d}-\frac{2 A B i^2 x (b c-a d)^2}{3 b^2}-\frac{B i^2 (c+d x)^2 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{3 b d}+\frac{i^2 (c+d x)^3 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{3 d}-\frac{2 B^2 i^2 (a+b x) (b c-a d)^2 \log \left (\frac{e (a+b x)}{c+d x}\right )}{3 b^3}+\frac{B^2 i^2 x (b c-a d)^2}{3 b^2}+\frac{B^2 i^2 (b c-a d)^3 \log ^2(a+b x)}{3 b^3 d}+\frac{B^2 i^2 (b c-a d)^3 \log (a+b x)}{3 b^3 d}+\frac{2 B^2 i^2 (b c-a d)^3 \log (c+d x)}{3 b^3 d}-\frac{2 B^2 i^2 (b c-a d)^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 b^3 d} \]

Antiderivative was successfully verified.

[In]

Int[(c*i + d*i*x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2,x]

[Out]

(-2*A*B*(b*c - a*d)^2*i^2*x)/(3*b^2) + (B^2*(b*c - a*d)^2*i^2*x)/(3*b^2) + (B^2*(b*c - a*d)^3*i^2*Log[a + b*x]
)/(3*b^3*d) + (B^2*(b*c - a*d)^3*i^2*Log[a + b*x]^2)/(3*b^3*d) - (2*B^2*(b*c - a*d)^2*i^2*(a + b*x)*Log[(e*(a
+ b*x))/(c + d*x)])/(3*b^3) - (B*(b*c - a*d)*i^2*(c + d*x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(3*b*d) - (
2*B*(b*c - a*d)^3*i^2*Log[a + b*x]*(A + B*Log[(e*(a + b*x))/(c + d*x)]))/(3*b^3*d) + (i^2*(c + d*x)^3*(A + B*L
og[(e*(a + b*x))/(c + d*x)])^2)/(3*d) + (2*B^2*(b*c - a*d)^3*i^2*Log[c + d*x])/(3*b^3*d) - (2*B^2*(b*c - a*d)^
3*i^2*Log[a + b*x]*Log[(b*(c + d*x))/(b*c - a*d)])/(3*b^3*d) - (2*B^2*(b*c - a*d)^3*i^2*PolyLog[2, -((d*(a + b
*x))/(b*c - a*d))])/(3*b^3*d)

Rule 2525

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*((d_.) + (e_.)*(x_))^(m_.), x_Symbol] :> Simp[((d + e*x)^(m
+ 1)*(a + b*Log[c*RFx^p])^n)/(e*(m + 1)), x] - Dist[(b*n*p)/(e*(m + 1)), Int[SimplifyIntegrand[((d + e*x)^(m +
 1)*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && RationalFunc
tionQ[RFx, x] && IGtQ[n, 0] && (EqQ[n, 1] || IntegerQ[m]) && NeQ[m, -1]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2528

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*(RGx_), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[c*
RFx^p])^n, RGx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, p}, x] && RationalFunctionQ[RFx, x] && RationalF
unctionQ[RGx, x] && IGtQ[n, 0]

Rule 2486

Int[Log[(e_.)*((f_.)*((a_.) + (b_.)*(x_))^(p_.)*((c_.) + (d_.)*(x_))^(q_.))^(r_.)]^(s_.), x_Symbol] :> Simp[((
a + b*x)*Log[e*(f*(a + b*x)^p*(c + d*x)^q)^r]^s)/b, x] + Dist[(q*r*s*(b*c - a*d))/b, Int[Log[e*(f*(a + b*x)^p*
(c + d*x)^q)^r]^(s - 1)/(c + d*x), x], x] /; FreeQ[{a, b, c, d, e, f, p, q, r, s}, x] && NeQ[b*c - a*d, 0] &&
EqQ[p + q, 0] && IGtQ[s, 0]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2524

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[(Log[d + e*x]*(a + b
*Log[c*RFx^p])^n)/e, x] - Dist[(b*n*p)/e, Int[(Log[d + e*x]*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x
] /; FreeQ[{a, b, c, d, e, p}, x] && RationalFunctionQ[RFx, x] && IGtQ[n, 0]

Rule 2418

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[
(a + b*Log[c*(d + e*x)^n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n}, x] && RationalFunct
ionQ[RFx, x] && IntegerQ[p]

Rule 2390

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[((f*x)/d)^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rubi steps

\begin{align*} \int (67 c+67 d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \, dx &=\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}-\frac{(2 B) \int \frac{300763 (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{a+b x} \, dx}{201 d}\\ &=\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}-\frac{(8978 B (b c-a d)) \int \frac{(c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{a+b x} \, dx}{3 d}\\ &=\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}-\frac{(8978 B (b c-a d)) \int \left (\frac{d (b c-a d) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^2}+\frac{(b c-a d)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^2 (a+b x)}+\frac{d (c+d x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b}\right ) \, dx}{3 d}\\ &=\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}-\frac{(8978 B (b c-a d)) \int (c+d x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{3 b}-\frac{\left (8978 B (b c-a d)^2\right ) \int \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{3 b^2}-\frac{\left (8978 B (b c-a d)^3\right ) \int \frac{A+B \log \left (\frac{e (a+b x)}{c+d x}\right )}{a+b x} \, dx}{3 b^2 d}\\ &=-\frac{8978 A B (b c-a d)^2 x}{3 b^2}-\frac{4489 B (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b d}-\frac{8978 B (b c-a d)^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b^3 d}+\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}+\frac{\left (4489 B^2 (b c-a d)\right ) \int \frac{(b c-a d) (c+d x)}{a+b x} \, dx}{3 b d}-\frac{\left (8978 B^2 (b c-a d)^2\right ) \int \log \left (\frac{e (a+b x)}{c+d x}\right ) \, dx}{3 b^2}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{e (a+b x)} \, dx}{3 b^3 d}\\ &=-\frac{8978 A B (b c-a d)^2 x}{3 b^2}-\frac{8978 B^2 (b c-a d)^2 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{3 b^3}-\frac{4489 B (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b d}-\frac{8978 B (b c-a d)^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b^3 d}+\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}+\frac{\left (4489 B^2 (b c-a d)^2\right ) \int \frac{c+d x}{a+b x} \, dx}{3 b d}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \int \frac{1}{c+d x} \, dx}{3 b^3}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{a+b x} \, dx}{3 b^3 d e}\\ &=-\frac{8978 A B (b c-a d)^2 x}{3 b^2}-\frac{8978 B^2 (b c-a d)^2 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{3 b^3}-\frac{4489 B (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b d}-\frac{8978 B (b c-a d)^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b^3 d}+\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}+\frac{8978 B^2 (b c-a d)^3 \log (c+d x)}{3 b^3 d}+\frac{\left (4489 B^2 (b c-a d)^2\right ) \int \left (\frac{d}{b}+\frac{b c-a d}{b (a+b x)}\right ) \, dx}{3 b d}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \int \left (\frac{b e \log (a+b x)}{a+b x}-\frac{d e \log (a+b x)}{c+d x}\right ) \, dx}{3 b^3 d e}\\ &=-\frac{8978 A B (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^3 \log (a+b x)}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^2 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{3 b^3}-\frac{4489 B (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b d}-\frac{8978 B (b c-a d)^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b^3 d}+\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}+\frac{8978 B^2 (b c-a d)^3 \log (c+d x)}{3 b^3 d}-\frac{\left (8978 B^2 (b c-a d)^3\right ) \int \frac{\log (a+b x)}{c+d x} \, dx}{3 b^3}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \int \frac{\log (a+b x)}{a+b x} \, dx}{3 b^2 d}\\ &=-\frac{8978 A B (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^3 \log (a+b x)}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^2 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{3 b^3}-\frac{4489 B (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b d}-\frac{8978 B (b c-a d)^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b^3 d}+\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}+\frac{8978 B^2 (b c-a d)^3 \log (c+d x)}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 b^3 d}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,a+b x\right )}{3 b^3 d}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \int \frac{\log \left (\frac{b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{3 b^2 d}\\ &=-\frac{8978 A B (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^3 \log (a+b x)}{3 b^3 d}+\frac{4489 B^2 (b c-a d)^3 \log ^2(a+b x)}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^2 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{3 b^3}-\frac{4489 B (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b d}-\frac{8978 B (b c-a d)^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b^3 d}+\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}+\frac{8978 B^2 (b c-a d)^3 \log (c+d x)}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 b^3 d}+\frac{\left (8978 B^2 (b c-a d)^3\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{3 b^3 d}\\ &=-\frac{8978 A B (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^2 x}{3 b^2}+\frac{4489 B^2 (b c-a d)^3 \log (a+b x)}{3 b^3 d}+\frac{4489 B^2 (b c-a d)^3 \log ^2(a+b x)}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^2 (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{3 b^3}-\frac{4489 B (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b d}-\frac{8978 B (b c-a d)^3 \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{3 b^3 d}+\frac{4489 (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{3 d}+\frac{8978 B^2 (b c-a d)^3 \log (c+d x)}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^3 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{3 b^3 d}-\frac{8978 B^2 (b c-a d)^3 \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{3 b^3 d}\\ \end{align*}

Mathematica [A]  time = 0.215564, size = 287, normalized size = 0.86 \[ \frac{i^2 \left ((c+d x)^3 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2-\frac{B (b c-a d) \left (-B (b c-a d)^2 \left (\log (a+b x) \left (\log (a+b x)-2 \log \left (\frac{b (c+d x)}{b c-a d}\right )\right )-2 \text{PolyLog}\left (2,\frac{d (a+b x)}{a d-b c}\right )\right )+b^2 (c+d x)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )+2 (b c-a d)^2 \log (a+b x) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )+2 A b d x (b c-a d)+2 B d (a+b x) (b c-a d) \log \left (\frac{e (a+b x)}{c+d x}\right )-2 B (b c-a d)^2 \log (c+d x)-B (b c-a d) ((b c-a d) \log (a+b x)+b d x)\right )}{b^3}\right )}{3 d} \]

Antiderivative was successfully verified.

[In]

Integrate[(c*i + d*i*x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2,x]

[Out]

(i^2*((c + d*x)^3*(A + B*Log[(e*(a + b*x))/(c + d*x)])^2 - (B*(b*c - a*d)*(2*A*b*d*(b*c - a*d)*x - B*(b*c - a*
d)*(b*d*x + (b*c - a*d)*Log[a + b*x]) + 2*B*d*(b*c - a*d)*(a + b*x)*Log[(e*(a + b*x))/(c + d*x)] + b^2*(c + d*
x)^2*(A + B*Log[(e*(a + b*x))/(c + d*x)]) + 2*(b*c - a*d)^2*Log[a + b*x]*(A + B*Log[(e*(a + b*x))/(c + d*x)])
- 2*B*(b*c - a*d)^2*Log[c + d*x] - B*(b*c - a*d)^2*(Log[a + b*x]*(Log[a + b*x] - 2*Log[(b*(c + d*x))/(b*c - a*
d)]) - 2*PolyLog[2, (d*(a + b*x))/(-(b*c) + a*d)])))/b^3))/(3*d)

________________________________________________________________________________________

Maple [F]  time = 2.044, size = 0, normalized size = 0. \begin{align*} \int \left ( dix+ci \right ) ^{2} \left ( A+B\ln \left ({\frac{e \left ( bx+a \right ) }{dx+c}} \right ) \right ) ^{2}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*i*x+c*i)^2*(A+B*ln(e*(b*x+a)/(d*x+c)))^2,x)

[Out]

int((d*i*x+c*i)^2*(A+B*ln(e*(b*x+a)/(d*x+c)))^2,x)

________________________________________________________________________________________

Maxima [B]  time = 1.81617, size = 1623, normalized size = 4.86 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)^2*(A+B*log(e*(b*x+a)/(d*x+c)))^2,x, algorithm="maxima")

[Out]

1/3*A^2*d^2*i^2*x^3 + A^2*c*d*i^2*x^2 + 2*(x*log(b*e*x/(d*x + c) + a*e/(d*x + c)) + a*log(b*x + a)/b - c*log(d
*x + c)/d)*A*B*c^2*i^2 + 2*(x^2*log(b*e*x/(d*x + c) + a*e/(d*x + c)) - a^2*log(b*x + a)/b^2 + c^2*log(d*x + c)
/d^2 - (b*c - a*d)*x/(b*d))*A*B*c*d*i^2 + 1/3*(2*x^3*log(b*e*x/(d*x + c) + a*e/(d*x + c)) + 2*a^3*log(b*x + a)
/b^3 - 2*c^3*log(d*x + c)/d^3 - ((b^2*c*d - a*b*d^2)*x^2 - 2*(b^2*c^2 - a^2*d^2)*x)/(b^2*d^2))*A*B*d^2*i^2 + A
^2*c^2*i^2*x - 1/3*(5*a*b*c^2*d*i^2 - 2*a^2*c*d^2*i^2 + (2*i^2*log(e) - 3*i^2)*b^2*c^3)*B^2*log(d*x + c)/(b^2*
d) - 2/3*(b^3*c^3*i^2 - 3*a*b^2*c^2*d*i^2 + 3*a^2*b*c*d^2*i^2 - a^3*d^3*i^2)*(log(b*x + a)*log((b*d*x + a*d)/(
b*c - a*d) + 1) + dilog(-(b*d*x + a*d)/(b*c - a*d)))*B^2/(b^3*d) + 1/3*(B^2*b^3*d^3*i^2*x^3*log(e)^2 + (a*b^2*
d^3*i^2*log(e) + (3*i^2*log(e)^2 - i^2*log(e))*b^3*c*d^2)*B^2*x^2 + ((3*i^2*log(e)^2 - 4*i^2*log(e) + i^2)*b^3
*c^2*d + 2*(3*i^2*log(e) - i^2)*a*b^2*c*d^2 - (2*i^2*log(e) - i^2)*a^2*b*d^3)*B^2*x + (B^2*b^3*d^3*i^2*x^3 + 3
*B^2*b^3*c*d^2*i^2*x^2 + 3*B^2*b^3*c^2*d*i^2*x + (3*a*b^2*c^2*d*i^2 - 3*a^2*b*c*d^2*i^2 + a^3*d^3*i^2)*B^2)*lo
g(b*x + a)^2 + (B^2*b^3*d^3*i^2*x^3 + 3*B^2*b^3*c*d^2*i^2*x^2 + 3*B^2*b^3*c^2*d*i^2*x + B^2*b^3*c^3*i^2)*log(d
*x + c)^2 + (2*B^2*b^3*d^3*i^2*x^3*log(e) + (a*b^2*d^3*i^2 + (6*i^2*log(e) - i^2)*b^3*c*d^2)*B^2*x^2 + 2*(3*a*
b^2*c*d^2*i^2 - a^2*b*d^3*i^2 + (3*i^2*log(e) - 2*i^2)*b^3*c^2*d)*B^2*x + (2*(3*i^2*log(e) - 2*i^2)*a*b^2*c^2*
d - (6*i^2*log(e) - 7*i^2)*a^2*b*c*d^2 + (2*i^2*log(e) - 3*i^2)*a^3*d^3)*B^2)*log(b*x + a) - (2*B^2*b^3*d^3*i^
2*x^3*log(e) + (a*b^2*d^3*i^2 + (6*i^2*log(e) - i^2)*b^3*c*d^2)*B^2*x^2 + 2*(3*a*b^2*c*d^2*i^2 - a^2*b*d^3*i^2
 + (3*i^2*log(e) - 2*i^2)*b^3*c^2*d)*B^2*x + 2*(B^2*b^3*d^3*i^2*x^3 + 3*B^2*b^3*c*d^2*i^2*x^2 + 3*B^2*b^3*c^2*
d*i^2*x + (3*a*b^2*c^2*d*i^2 - 3*a^2*b*c*d^2*i^2 + a^3*d^3*i^2)*B^2)*log(b*x + a))*log(d*x + c))/(b^3*d)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (A^{2} d^{2} i^{2} x^{2} + 2 \, A^{2} c d i^{2} x + A^{2} c^{2} i^{2} +{\left (B^{2} d^{2} i^{2} x^{2} + 2 \, B^{2} c d i^{2} x + B^{2} c^{2} i^{2}\right )} \log \left (\frac{b e x + a e}{d x + c}\right )^{2} + 2 \,{\left (A B d^{2} i^{2} x^{2} + 2 \, A B c d i^{2} x + A B c^{2} i^{2}\right )} \log \left (\frac{b e x + a e}{d x + c}\right ), x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)^2*(A+B*log(e*(b*x+a)/(d*x+c)))^2,x, algorithm="fricas")

[Out]

integral(A^2*d^2*i^2*x^2 + 2*A^2*c*d*i^2*x + A^2*c^2*i^2 + (B^2*d^2*i^2*x^2 + 2*B^2*c*d*i^2*x + B^2*c^2*i^2)*l
og((b*e*x + a*e)/(d*x + c))^2 + 2*(A*B*d^2*i^2*x^2 + 2*A*B*c*d*i^2*x + A*B*c^2*i^2)*log((b*e*x + a*e)/(d*x + c
)), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)**2*(A+B*ln(e*(b*x+a)/(d*x+c)))**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (d i x + c i\right )}^{2}{\left (B \log \left (\frac{{\left (b x + a\right )} e}{d x + c}\right ) + A\right )}^{2}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)^2*(A+B*log(e*(b*x+a)/(d*x+c)))^2,x, algorithm="giac")

[Out]

integrate((d*i*x + c*i)^2*(B*log((b*x + a)*e/(d*x + c)) + A)^2, x)